package com.sws.hm.dao;

import com.sws.hm.dto.email;
import com.sws.hm.entity.Email;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface EmailDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Email record);

    int insertSelective(Email record);

    Email selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Email record);

    int updateByPrimaryKey(Email record);

    List<email>  findAll(@Param("name")String name);

    List<String>  findEmail();

    int insertEmail(@Param("email")String email,@Param("name")String name);

     int deleteById(int id);

     int updateEmail(@Param("email")String email,@Param("name")String name,@Param("id")String id);
}
